package top.stacktrace.gateway.config.auth;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import org.springframework.security.core.GrantedAuthority;

@Data
@JsonIgnoreProperties(ignoreUnknown=true)
public class TokensAuthority implements GrantedAuthority {
    private String authority;

    public TokensAuthority(String role){
        this.authority = role;
    }

    public TokensAuthority() {
        this.authority = "";
    }

    @Override
    public String getAuthority() {
        return authority;
    }
}
